Method for positioning, a positioning system, and an electronic device

ABSTRACT

The invention relates to a method for positioning a wireless communication device (MS). In the method, position data of one or a plurality of reference points is stored into at least one data base (DB), and it is detected which of said reference points is located in the vicinity of the wireless communication device (MS). In the method, at least position data of said reference point located in the vicinity of the wireless communication device (MS) is transmitted to the wireless communication device (MS), wherein in order to perform the positioning, said reference point located in the vicinity of the wireless communication device (MS) is selected as the default location of the wireless communication device (MS).

FIELD OF THE INVENTION

[0001] The present invention relates to a method for positioning of a wireless communication device. The invention further relates to a positioning system to be used in the positioning of a wireless communication device. The invention relates also to an electronic device to be used in a positioning system, which electronic device comprises at least positioning means and means for performing functions of a mobile communication device.

BACKGROUND OF THE INVENTION

[0002] In positioning systems based on satellite positioning, a positioning receiver attempts to receive signals of at least four satellites in order to detect the position of the positioning receiver and the time data. An example of such a satellite positioning system is the GPS system (Global Positioning System) comprising a plurality of satellites orbiting the globe according to predefined orbits. These satellites transmit positioning data, on based of which the position of a satellite can be defined at each moment of time, in case the exact time data used in the satellite positioning system is known in the positioning receiver. In the GPS system, the satellites transmit a spread spectrum signal which is modulated with a code that is individual for each satellite. Thus, the positioning receiver can distinguish signals transmitted by different satellites from each other by using a reference code corresponding to the satellite code generated locally in the positioning receiver.

[0003] A drawback with such positioning systems based on satellite positioning is often the fact that a signal transmitted by a satellite is strongly attenuated when arriving to the positioning receiver, wherein it is very difficult to distinguish the signal from the background noise. The signal can be attenuated inter alia due to climatic conditions and obstacles, such as buildings and surrounding grounds in the routing of the signal. Also, the signal can wander to the positioning receiver through a plurality of different routes which causes so-called multipath propagation and aggravates the synchronizing of the positioning receiver to a wished signal because the transmitted signal arrives to the receiver through different routings, for example straight from the satellite (line-of-sight) and, in addition to this; reflected. Due to this multipath propagation the same signal is received as a plurality of signals with different phases. It is particularly difficult to perform positioning inside a building, because a building itself strongly attenuates the signal transmitted by satellites and, on the other hand, multipath propagation can be even stronger since possibly reflected signals coming for example through a window are not necessarily as attenuated as signals coming straight through the roof. In this case, the receiver can make erroneous interpretations about the time of flight and the positioning of the satellite during the moment of transmission, inter alia due to said increase in the signal time-of-flight caused by multipath propagation

[0004] Each operating satellite of the GPS system transmits a so-called L1 signal in the carrier frequency of 1575.42 MHz. This frequency is also indicated with 154f₀, where f₀=10.23 MHz. Furthermore, the satellites transmit another ranging signal at a carrier frequency of 1227.6 MHz called L2, i.e. 120f₀. In the satellite, these signals are modulated with at least one pseudo random sequence. This pseudo random sequence is different for each satellite. As a result of the modulation, a code-modulated wideband signal is produced. The modulation technique used makes it possible to distinguish in the receiver the signals transmitted by different satellites, even though the carrier frequencies used in the transmission are substantially the same. This modulation technique is called code division multiple access (CDMA). In each satellite, for modulating the L1 signal, the pseudo sequence used is e.g. a so-called C/A code (Coarse/Acquisition code), which is a code from the family of the Gold codes. Each GPS satellite transmits a signal by using an individual C/A code. The codes are formed as a modulo-2 sum of two 1023-bit binary sequences. The first binary sequence G1 is formed with a polynome X¹⁰+X³+1, and the second binary sequence G2 is formed by delaying the polynome X¹⁰+X⁹+X⁸+X⁶+X³+X²+1 in such a way that the delay is different for each satellite. This arrangement makes it possible to produce different C/A codes by an identical code generator. The C/A codes are thus binary codes whose chipping rate in the GPS system is 1.023 MHz. The C/A code comprises 1023 chips, wherein the iteration time (epoch) of the code is 1 ms. The carrier wave of the L1 signal is further modulated by navigation information at a bit rate of 50 bit/s. The navigation information comprises information about the “health”, orbit, time data of the satellite, etc.

[0005] During their operation, the satellites monitor the condition of their equipment. The satellites may use for example so-called watchdog operations to detect and report possible faults in the equipment. The errors and malfunctions can be instantaneous or longer lasting. On the basis of the health data, some of the faults can possibly be compensated for, or the information transmitted by a malfunctioning satellite can be totally disregarded. Furthermore, in a situation in which the signal of more than four satellites can be received, the information received from different satellites can be weighted differently on the basis of the health data. Thus, it is possible to minimize the effect of errors on measurements, possibly caused by satellites which seem unreliable.

[0006] To detect the signals of the satellites and to identify the satellites, the receiver must perform acquisition, whereby the receiver searches for the signal of each satellite at the time and attempts to be synchronized and locked to this signal so that the data transmitted with the signal can be received and demodulated.

[0007] The positioning receiver must perform the acquisition e.g. when the receiver is turned on and also in a situation in which the receiver has not been capable of receiving the signal of any satellite for a long time. Such a situation can easily occur e.g. in portable devices, because the device is moving and the antenna of the device is not always in an optimal position in relation to the satellites, which impairs the strength of the signal coming in the receiver.

[0008] The positioning arrangement has two primary functions:

[0009] 1. to calculate the pseudorange between the receiver and the different GPS satellites, and

[0010] 2. to determine the position of the receiver by utilizing the calculated pseudoranges and the position data of the satellites. The current position data of the satellites can be calculated on the basis of the Ephemeris and time correction data received from the satellites.

[0011] Distances to the satellites are called pseudoranges, because the time is not accurately known in the receiver. Thus, the determinations of position and time are repeated until a sufficient accuracy is achieved with respect to time and position. Because the time is not known with absolute precision, the position and the time must be determined e.g. by linearizing a set of equations for each new iteration.

[0012] A pseudorange can be calculated by measuring the pseudo transmission time delays between signals of different satellites.

[0013] Almost all known GPS receivers utilize correlation methods for acquisition to the code as well as for tracking. In a positioning receiver, reference codes ref(k), i.e. the pseudo random sequences for different satellites are stored or generated locally. A received signal is subjected to conversion to an intermediate frequency (down conversion), whereafter the receiver multiplies the received signal with the stored pseudo random sequence. The signal obtained as a result of the multiplication is integrated or low-pass filtered, wherein the result obtained is data about whether the received signal contained a signal transmitted by a satellite. The multiplication is iterated in the receiver so that the phase of the pseudo random sequence stored in the receiver is shifted each time. The correct phase is inferred from the correlation result preferably so that when the correlation result is at its peak, the correct phase has been detected. Thus, the receiver is correctly synchronized with the received signal. After the code acquisition has been completed, the next steps are frequency tuning and phase locking.

[0014] The above-mentioned acquisition and frequency control process must be performed for each signal of a satellite received in the receiver. Some receivers may include several receiving channels, wherein an attempt is made on each receiving channel to be synchronized with the signal of one satellite at a time and to detect the information transmitted by this satellite.

[0015] The positioning receiver receives information transmitted by satellites and performs positioning on the basis of the received information. For the positioning, the receiver must receive a signal transmitted by at least four different satellites to find out the x, y, z coordinates and the time data. The received navigation information is stored in a memory, wherein this stored information can be used to find out e.g. the positioning data of satellites.

[0016]FIG. 1 shows, in a principle chart, positioning, by means of a signal transmitted from four satellites SV1, SV2, SV3, SV4 in a wireless communication device MS comprising a positioning receiver. In the GPS system, the satellites transmit positioning data as well as time data, on the basis of which the positioning receiver can perform calculations to determine the current position of the satellite. These positioning data and time data are transmitted in frames which are further divided into subframes. In the GPS system, each frame comprises 1500 bits, which are divided into five subframes of 300 bits each. Since the transmission of one bit takes 20 ms, the transmission of each subframe thus takes 6 s, and the whole frame is transmitted in 30 seconds. The subframes are numbered from 1 to 5. In each subframe 1, e.g. time data is transmitted, indicating the moment of transmission of the subframe as well as information about the deviation of the satellite clock with respect to the time in the GPS system.

[0017] The subframes 2 and 3 are used for the transmission of positioning data. The subframe 4 contains other system information, such as universal time, coordinated (UTC). The subframe 5 is intended for the transmission of almanac data of all the satellites. The entity of these subframes and frames is called a GPS navigation message which comprises 25 frames, i.e. 125 subframes. The length of the navigation message is thus 12 min 30 s.

[0018] In the GPS system, time is measured in seconds from the beginning of a week. In the GPS system, the starting time of a week is the midnight between a Saturday and a Sunday. Each subframe to be transmitted contains information on the moment of the GPS week when the subframe in question was transmitted. Thus, the time data indicates the time of transmission of a certain bit, i.e. in the GPS system, the time of transmission of the last bit in the subframe in question. In the satellites, time is measured with high-precision atomic chronometers. In spite of this, the operation of each satellite is controlled in a control centre for the GPS system (not shown), and e.g. a time comparison is performed to detect chronometric errors in the satellites and to transmit this information to the satellite.

[0019] In the precision of positioning it is of great importance how precisely the actual GPS time is known by the receiver. In practice, the precise GPS time can be determined after positioning calculation, in which the chronometric error of the receiver is determined relative to the GPS time. However, in the very first positioning calculation an estimation of the GPS time can be used, because the actual GPS time is not necessarily known in the receiver. The estimated GPS time at a moment of time k can be derived on the basis of measurement of three time elements according to the following formula:

T _(GPS) ^(J)(k)=T _(TOW)(k)+T _(ms) ^(J)(k)+T _(chip) ^(j)(k)+0.078   (1)

[0020] in which

[0021] T_(TOW) ^(J)=the time data (time of week) in seconds contained in the last received subframe,

[0022] T_(ms) ^(J)(k)=the time in seconds corresponding to the number of C/A epochs received after the beginning of the last received subframe,

[0023] T_(chip) ^(J)(k)=the time in seconds corresponding to the number (from 0 to 1022) and code phase of whole chips received after the change of the last epoch, and

[0024] j=the receiving channel index.

[0025] In Formula 1, the average time of flight (ToF) of the signal from the satellite to the receiver is 78 ms. As a reference it is possible to use any such receiving channel in which the signal-to-noise ratio (SNR) is sufficient.

[0026] The time data (ToW) is transmitted in the navigation message at intervals of six seconds and it indicates the time passed from the last change of the GPS week. Thus, the value range of the time data is the remainder of one week. In a corresponding manner T_(ms) ^(J)(k) equals the remainder of six seconds and T_(chip) ^(j)(k) equals the remainder of 1 ms. The first three terms of the Formula (1) can also be used in the measurement of the time of arrival (ToA) of the signal.

[0027] In poor receiving conditions in which the navigation data cannot be indicated inter alia due to a high bit error rate (BER), it is not possible, due to the missing time data ToW, to determine the GPS time directly by means of the Formula 1. However, the code phase can normally still be measured.

[0028] The first three terms in the Formula 1 determine the time of transmission {circumflex over (T)}_(ToT) ^(k) of the received signal.

SUMMARY OF THE INVENTION

[0029] It is an aim of the present invention to provide an improved positioning method and a positioning receiver in which as the default location of the positioning receiver is used the location of a known reference point, which can be detected in a data base, or the like. The data base is preferably arranged in a data network, such as the Internet network and/or a mobile communication network. Moreover, the positioning data of one or a plurality of reference points can be stored into an electronic device comprising a positioning receiver. The invention is based on the idea that as the default position of the electronic device is used the position of a such reference point whose position is known, and this position of the reference point is stored in the data base, wherein this positioning data is retrieved from the storage location to the electronic device. In case the positioning data are not stored in the electronic device, they are retrieved at the time when the positioning is wished to be performed. More precisely, the method according to the present invention is primarily characterized in that position data of one or a plurality of reference points is stored to at least one data base, it is examined which of said reference points is located in the vicinity of the wireless communication device, and at least position data about said reference point located in the vicinity of the wireless communication device is transmitted to the wireless communication device, wherein in order to perform the positioning, said reference point located in the vicinity of the wireless communication device is selected as the default position of the wireless communication device. The positioning system according to the present invention is primarily characterized in that the positioning system comprises at least one data base for storing one or a plurality of reference points, means for detecting which of said reference points is located in the vicinity of the wireless communication device, means for transmitting the position data of the reference point located in the vicinity of said wireless communication device to the wireless communication device, wherein for performing the positioning, said reference point in the vicinity of the wireless communication device is arranged to be selected as the default position of the wireless communication device. The electronic device according to the present invention is primarily characterized in that the electronic device further comprises means for detecting which of the reference points stored in the data base of the positioning system is located in the vicinity of the wireless communication device, means for receiving the position data of the reference point located in the vicinity of the wireless communication device, and means for selecting the reference point located in the vicinity of said wireless communication device as the default position of the wireless communication device in the positioning.

[0030] Considerable advantages are achieved by the present invention when compared to the positioning methods and receivers of prior art. Since the method of the invention uses, as the default position of the electronic device, the position of a reference point, preferably a base station of a mobile communication network that is situated relatively close to the electronic device, and auxiliary data is transmitted to the electronic device, the real position of the electronic device can be detected relatively fast. Additional advantages are provided in the method by the fact that the electronic device stores the auxiliary data and location data of the reference points it has received, wherein it is not always necessary for the electronic device to detect this information by using the mobile communication network, which reduces network traffic. In addition, this kind of retrieval of auxiliary data from a mobile communication network is usually subject to charge, wherein the costs of the positioning system paid by the user can be cut down by the arrangement of the invention. Yet another advantage to be mentioned is that the decrease in network traffic reduces also the power consumption of the electronic device, which is beneficial particularly in portable electronic devices. The use of the method according to the invention allows positioning also indoors, which is not necessarily possible with prior art solutions.

DESCRIPTION OF THE DRAWINGS

[0031] In the following, the present invention will be described in more detail with reference to the appended drawings, in which

[0032]FIG. 1 shows the method according to a preferred embodiment of the invention in a reduced manner,

[0033]FIG. 2 shows an electronic device according to a preferred embodiment of the invention in a reduced block chart, and

[0034]FIG. 3 shows a positioning method applying the method according to a second preferred embodiment of the invention in a reduced flow chart.

DETAILED DESCRIPTION OF THE INVENTION

[0035] In the following, the operation of the method according to a preferred embodiment of the invention will be described with reference to the system shown in FIG. 1. An electronic device performing positioning is in FIG. 2 exemplified by a wireless communication device MS comprising, in addition to the mobile communication means MT, also a positioning receiver PR. Thus, the mobile communication means MT can be used for transmitting information between the wireless communication device MS and the base stations BS, BS′, BS″ of the mobile communication network MN.

[0036] In a positioning receiver PR according to FIG. 2, a signal to be received via a first antenna 1 is converted preferably to an intermediate frequency in the converter block 2. The signal converted to the intermediate frequency comprises two components known as such: I and Q components, with a phase difference of approximately 90° therebetween. These analog signal components converted to the intermediate frequency are digitized. During the digitizing of the signal components, preferably at least one sample is taken of each chip, ie. preferably at least 1,023,000 samples per second are thus taken in the GPS system. Furthermore, the I and Q components of the digitized signal are multiplied by a signal formed by a first numerically controlled oscillator (NCO) 5. The purpose of the signal of this first numerically controlled oscillator 5 is to correct the frequency deviation caused by the Doppler shift and a frequency error of the local oscillator (not shown) of the receiver. The signals formed in the converter blocks 2 are preferably led to a digital signal processor 3. Reference codes ref(k) corresponding to the codes used in code modulation of the satellites to be received at a time are generated in block 16 . Using e.g. this reference code ref(k), the positioning receiver PR attempts to find the code phase and frequency deviation of the signal of the satellite received on each receiving channel, to be used in the operations after the synchronization.

[0037] A control block 7 is used for controlling inter alia a code phase detector 9 which is used for adjusting the frequency of the numerically controlled oscillator 5, if necessary. The synchronization will not be described in more detail in this specification, since it is prior art known per se. If necessary, after the receiving channel has been synchronized to the signal of a satellite SV1, SV2, SV3, SV4, the demodulation and storage of the navigation information transmitted in the signal can be initiated, if possible. The digital signal processor 3 stores navigation information preferably in a memory 4. In the method according to the present invention, it is not necessary to modulate and store this navigation information, but the positioning receiver PR has to define the chip and epoch of the signals received from the satellites.

[0038] The wireless communication device MS also comprises mobile communication means MT for performing the functions of the wireless communication device, such as a second antenna 10, a radio part 11, audio means, such as a codec 14 a, a speaker 14 b and a microphone 14 c, a display 12, and a keypad 13. However, it is obvious that a part of the functional blocks of the wireless communication device MS can be common to both the positioning receiver PR and the mobile communication means MT. For example the display 12 and the keypad 13 can be used in some applications also in connection with the positioning receiver PR, for example to show the result of the performed positioning. The control block 7 can also be common both for the control of the positioning receiver PR and the mobile communication means MT, or one or a plurality of individual control blocks can be arranged for both units.

[0039] In the mobile communication network MN every base station BS, BS′, BS″ has an individual identifier CGI (Cell Global Identity). For example in the GSM system the cell global identity CGI comprises preferably the following four parts:

[0040] mobile country code MCC,

[0041] mobile network code MNC,

[0042] location area code LAC, and

[0043] cell identity CI.

[0044] Thus, every base station BS, BS′, BS″ can be identified on the basis of the cell global identity CGI of this base station. The serving base station BS, BS′, BS″, that it, the base station through which the wireless communication device MS communicates with the mobile communication network MN at a time transmits the cell global identity CGI of the base station to the mobile communication device, preferably via a control channel of the mobile communication network MN. Thus, inter alia in connection with a base station handover the wireless communication device MN can detect the base station change on the basis of the change in the cell global identity CGI. In the method according to the invention the cell global identity CGI is advantageously utilized in the following manner. In the wireless communication device MS the information transmitted by the base station BS, BS′, BS″ is received, from which information inter alia on the cell global identity CGI is found out. According to this identity it is detected whether any information related to the position of this particular base station BS, BS′, BS″ is stored in the memory means 4, 8 of the wireless communication device. If no positioning data in accordance with the cell global identity is found in the memory means 4, 8, the necessary positioning data is searched from the data base DB. In this embodiment the positioning data is stored in the mobile communication network MN, for example in each base station BS, BS′, BS″, in the mobile switching center MSC, or in the GPRS packet network. The wireless communication device MS transmits to the mobile communication network MN a request to transmit the positioning data of the base station in question to the wireless communication device MS. It is not necessary to transmit the cell global identity of the base station in the interrogation message because the mobile communication network knows through which base station the connection to the wireless communication device is arranged at a time. As response, the base station transmits the positioning data of the base station and, if necessary, other auxiliary data in accordance with the satellite positioning system as well, such as the orbit parameters and the almanac data of the satellites. The transmitted information is received in the wireless communication device MS, wherein at least the positioning data of the base station is stored in the memory means 4, 8. In addition, the cell global identity CGI of the base station is stored, which can then be used as an index to the positioning data stored into the memory means 4, 8.

[0045] After the position of the serving base station is known in the wireless communication device MS, it is possible to utilize this positioning data of the base station in the positioning by setting it as the default position of the positioning receiver. According to this positioning data the wireless communication device is informed of the approximate position of the wireless communication device on the globe. On the basis of the time data transmitted by the base station it is possible to estimate in the wireless communication device which satellites are above the horizon, that is, visible as seen from the wireless communication device. Next, the wireless communication device can attempt to search for the signals of these visible satellites. Positioning can thus be performed in a manner known as such by first using this default position and by precisioning the positioning on the basis of the signals received from the satellites SV1 to SV4. Later in this specification there will be described an example on how said position of a known reference point can be utilized in the positioning.

[0046] As a wireless communication device MS moves from the coverage area of a base station to the coverage area of another base station (e.g. in FIG. 1 from the coverage area of a first base station BS to the range of a second base station BS′), the afore-mentioned detection of the base station data stored in the storage means 4, 8 is performed in connection with the handover to detect whether any information on this second base station is stored in the wireless communication device MS, or whether the information should be retrieved from the data base DB. Next, preferably the position of this second base station BS′ is used as the default position of the wireless communication device MS in the positioning of the wireless communication device MS.

[0047] On the other hand, because it is known that the wireless communication device MS moved from the coverage area of one base station BS to the coverage area of a second base station BS′, it is possible to use at this stage for example some other positioning data calculated on the basis of these two base stations, preferably the midpoint between these two base stations BS, BS′, as the default position of the wireless communication device MS. In this case, it is very probable that in connection with a handover the wireless communication device MS is positioned closer to this midpoint than to either of the base stations BS, BS′. In this manner it is possible in some situations to faster achieve the wished positioning precision in the positioning receiver MS.

[0048] In some mobile communication systems, such as systems based on the CDMA, the wireless communication device MS can simultaneously communicate with more than one base station. Thus, as the default position of the wireless communication device MS can be used for example the positioning data calculated according to the position of those base stations that communicate simultaneously with the wireless communication device MS. For example, if three base stations are used in the communication, e.g. the geometric midpoint, which can be used as the default position, is calculated on the basis of the positioning data of these three base stations. It is obvious that the motion data of the wireless communication device MS can also be used in the definition of the default position, that is, in accordance with the previously performed positionings the direction of movement of the wireless communication device MS is estimated and, on the basis of this, attempt is made to select the base station positioned close to the direction of movement of the wireless communication device MS, e.g. the wireless communication device is moving towards one of these base stations.

[0049] In the above-described method according to a first preferred embodiment of the invention it was presumed that the data base used in the positioning data of the base stations is located in the mobile communication network, wherein the positioning data can be retrieved from the mobile communication network. The positioning data can also be transmitted enciphered. In this case an enciphering code required in the deciphering is retrieved to the wireless communication device MS from the mobile communication network, for example as point-to-point messages. This kind of messaging is usually subject to a charge to the user of the wireless communication device, wherein the user has to pay for the positioning data of the base stations that he/she has retrieved. However, by using the method according to a first preferred embodiment of the invention it is possible to decrease the need to retrieve auxiliary data, because the auxiliary data is stored in the memory means 4, 8 of the positioning receiver at the stage when new or changed data is received.

[0050] In the following, a method according to another preferred embodiment of the invention is described, in which auxiliary data is not retrieved from the mobile communication network, but from a data base DB provided elsewhere, e.g. in the Internet network I. FIG. 3 illustrates, in a reduced chart, a system in which this method according to a second preferred embodiment of the invention can be applied. The data base DB is located in such an information network or information system which can communicate with a mobile communication device. The data base DB is arranged for example in a data base server S that is connected to communicate with the Internet network I. Identification data and position of base stations are stored in the data base DB. Through the data base server S possibly other auxiliary data of the satellite positioning system can also be downloaded to the wireless communication device MS.

[0051] The communication connection set up from the wireless communication device MS can be for example a connection according to a so-called WAP protocol, by means of which the wireless communication device MS can be used for example for browsing information on the Internet network, inter alia www pages of companies and other sites where data is stored. In this case, from the memory means 4, 8 of the wireless communication device MS the BS position data is retrieved, in accordance with which it is possible to communicate with said data base server S that maintains the data base DB for the positioning data of the base stations. In addition to this position data the data base identifier CGI of the base station is detected and transmitted for example as messages according to said WAP protocol to the mobile communication network, where the messages are converted preferably to messages according to the Internet Protocol and transmitted further to the Internet network in a manner known as such. The identifier of the wireless communication device MS that has transmitted the message is also added to the messages, wherein the response messages can be transmitted back to the communication device that has transmitted the interrogation message. Another example that can be mentioned in this context is the use of short messages (SM) in transmission of positioning data and possible auxiliary data.

[0052] Setting up a communication connection with the data base server S can in some situations be performed also for example with a wireless local area network WLAN. Thus, the wireless communication device MS creates a communication connection with a wireless local area network, which is situated in the vicinity of a wireless communication device MS and through which for example the Internet network I can be contacted.

[0053] In the Internet network the messages are transmitted to the target address, in this case to the data base server S in which said data base DB is located, by using the message transmission mechanisms of the Internet network, in a manner known as such. The data base server interprets the arrived message and detects, on the basis of the cell global identity CGI of the base station that has been transmitted in the message, the information about this base station from the data base DB. Next, the data base server creates a response message comprising said positioning data, if positioning data related to said base station are stored in the data base DB. Subsequently, the response message is transmitted from the data base server S to the Internet network I, where the message is routed to the mobile communication network MN. The mobile communication network transfers the response message to the base station which is communicating with the wireless communication device at the time. The base station sends the response message to the wireless communication device MS. Next, in the wireless communication device MS the received positioning data is stored into the memory means 4, 8, and the positioning is performed, if necessary.

[0054] In this method according to a second preferred embodiment of the invention the default position of the wireless communication device MS is also defined according to the positioning data of one or a plurality of base stations. When the wireless communication device MS moves to the range of a base station BS, BS′, BS″, an interrogation message can be transmitted from the wireless communication device requesting the positioning data of said base station to be transmitted to the wireless communication device, in case the positioning data are not yet stored in the wireless communication device MS. This interrogation message is transferred to the data base server S, where it is detected whether the information related to said base station is found in the data base DB. If the data are found in the data base DB, the data are transmitted to the wireless communication device MS. The positioning can thereafter be performed in the positioning receiver PR by using this positioning data of the base station as the default position. In the same context, positioning data of several base stations BS, BS′, BS″ can be transmitted, and for example the data base server S finds out which base stations are positioned in the vicinity of said base station, e.g. the base stations of the adjacent cells. In this case the data base server transmits to the wireless communication device MS also positioning data of these base stations positioned close to said base station. This arrangement provides the advantage that when the wireless communication device MS is moving from the range of one base station to the range of a second base station the wireless communication device MS already has the positioning data of this second base station.

[0055] Even if an existing mobile communication network MN can also be utilized in the transfer of the positioning data of the base stations BS, BS′, BS″ in this embodiment, the positioning data are retrieved from outside the mobile communication network MN. The transfer service of such positioning data of the base stations BS, BS′, BS″ can be arranged to be independent of operators. Thus, service providers can themselves price the service and, on the other hand, limit the use of the service if necessary. A service provider can be for example an Internet service provider, that gives preferably to registered users the possibility to retrieve information from the data base DB.

[0056] In practise, the data base DB can be decentralized, wherein a plurality of data base servers S of a preferred embodiment of the invention can be located in different geographical locations. Thus, when a user arrives close to such a data base server S, a communication connection can be set up between the data base server S and the wireless communication device MS, for example by using a local communication method, such as a so-called Bluetooth or WLAN connection. Through this connection it is possible to transfer for example the positioning data of one or a plurality of reference points of the neighbouring area to the wireless communication device MS.

[0057] In addition to the positioning data of the base station the default position of the wireless communication device MS can also in some embodiments be the WLAN access point, the positioning data of which is known and the signals transmitted by which have the necessary information for the identification of the access point. The positioning data of other short-range access points or the like, such as the Bluetooth system, can be applied in connection with the method of the invention if the location of these access points is known and the access points can be identified in the wireless communication devices.

[0058] Even if in the above described examples the cell global identity CGI of the base station has been used in the identification of the base station, it is obvious that other identification methods can also be applied. Examples to be mentioned include the country code, which in some cases (for example Monaco) expresses a sufficiently small geographical area in view of the positioning according to the invention. The mobile network code MNC can also in some cases indicate the default position of the wireless communication device MS at a sufficient precision.

[0059] The directional pattern of the base station antenna is not necessarily omnidirectional, but it can be directed to some direction. Antenna structures are also known in which the direction of the directional pattern can be changed to a wished direction, for example towards a wireless communication device in order to improve the signal-to-noise ratio in this direction. The directional pattern can also be composed of a plurality of segments directed to different directions. In these kind of situations the default position used is not necessarily the position of the base station, but a point determined according to the directional pattern of the base station, such as the center of the directional pattern. This can is some systems be calculated for example in such a manner that the parameters of the directional pattern are transmitted from the mobile communication network to the wireless communication device, or the calculation is performed in the mobile communication network from which the location obtained as a result of the calculation is transmitted to the wireless communication device.

[0060] In the system according to a second preferred embodiment of the invention the information of the data base DB can be updated for example as follows. When a wireless communication device MS has successfully determined its position and is positioned inside the operative area of a base station BS, or BS′, or BS″ (Note: MS is communicating actively only with one BS, but it has knowledge about the neighbouring stations) and connected to this base station, the wireless communication device transmits the information on its location, the cell global identity CGI of the base station and advantageously also the information on timing advance TA, for example via the mobile communication network MN, to said data base server S in which the data base DB is located. Thus, the data base server S updates information of said base station in the data base DB according to the positioning data transmitted from the wireless communication device MS. However, this data is not necessarily the precise position of the base station, because it is, nevertheless, not probable that the wireless communication device MS would be positioned exactly at the base station. However, these positioning data located in the coverage area of the base station can be used as reference points, because these reference points are, nevertheless, relatively close to the base station. In this case, a group of positioning data is stored into the data base with the cell global identity CGI of said base station, which data can be transmitted to the wireless communication device MS that has requested for the positioning data. When a plurality of wireless communication devices having a positioning receiver perform positioning within the coverage area of a base station and transmit the information on their position to the data base server it is thus possible, on the basis of a set of data, to calculate e.g. a mean value, a geometric center or the like, which is sent as the reference point to the wireless communication device MS. In this case the position data of the BS's can also be created by using the system. Moreover, this arrangement does not require that the operator of the mobile communication network would be involved in the system maintenance, that is, the system is operator independent.

[0061] Said advance timing data can be used in the data base server S in order to estimate how close to said base station BS, BS′, BS″ the wireless communication device MS is located. The smaller the advance timing the closer to the base station the wireless communication device is normally located.

[0062] Wireless communication devices can transmit said positioning data and other information to the data base server S for example at regular intervals, or when a predetermined criterion is fulfilled, for example when the cell global identity CGI of the base station is changed. Additionally, a local data base containing information on the position of the data bases can be created in the wireless communication device MS. Thus, the wireless communication device can transmit the positioning data of the base stations that it has stored to a second wireless communication device and/or to a data base server, for example as short messages, wherein these data can be used also in the positioning functions of this second wireless communication device and, on the other hand, the data base DB of the data base server is updated. The transmission of data to the second wireless communication device can be initiated e.g. by the user of the wireless communication device.

[0063] When describing above the preferred embodiments of the invention it was noted that the wireless communication device makes a request on the positioning data of the base stations while the wireless communication device is located within the range of a certain base station. The invention can also be applied in such a manner that the wireless communication device performs an information request for example when the positioning receiver PR and/or the mobile communication means MT are switched on. In this case, the information that relates for example to the position of base stations BS, BS′, BS″ in a certain geographical area can be transmitted to the wireless communication device MS, and the information can be used without a delay at the stage when the wireless communication device MS is moving within the range of the mobile communication network. Thus, it is not necessary to waste time for the transfer of base station data, but the information already exists stored in the memory means 8 of the wireless communication device. This, in its part, cuts down the power consumption of the wireless communication device MS and also decreases the load to the mobile communication device MN, because the need for data transfer is diminished. It is obvious that this alternative also allows to detect which base station data is already stored in the wireless communication device MS, whereby it is not necessary to transfer these data again, unless there has been changes in the data.

[0064] By using the above-described method, the positioning can be performed also in poor signalling conditions. Also, no precise time data is required if the position of the reference point is known. Moreover, the transmission of auxiliary data is not dependent on the positioning services provided by the operator.

[0065] In the following, an example is given on how said positioning data of the base station can be used in the positioning of a wireless communication device. In the definition of time of transmission ToT according to the formula (1), only the number and code phase T_(chip) ^(J)(k) of the chips received after the epoch change can be defined in a situation in which the strength of the signal to be received is weak. By means of this parameter it is possible to measure only the differences on the chip level (<1 ms) in the signals of different satellites SV1, SV2, SV3, SV4, because the same code is repeated at intervals of one epoch (=1 ms). Because the distance between each satellite and receiver can differ significantly, there may be large differences, even differences over 10 ms, in the times of flight of signals received from different satellites. Thus, the definition of the differences on the chip level is not sufficient. One millisecond in time represents a distance of approximately 300 km when the signal propagates substantially at the speed of light. Correspondingly, one chip (approximately 1 μs=1 ms/1023) equals approximately 300 meters.

[0066] In such a situation the differences of milliseconds have to be defined in different receiving channels on the basis of the distances between the satellites SV1, SV2, SV3, SV4 and the wireless communication device MS. However, generally the estimated location of the wireless communication device MS is not necessarily known. Instead, in the systems according to FIGS. 1 and 3 it is possible to estimate the location of the wireless communication device MS by using a selected reference point, such as the location of the base station BS. Thus, the positioning data of the base station BS, BS′, BS″, the orbit parameters of the satellites SV1, SV2, SV3, SV4, and the time data stored into the memory means 4, 8 can be used in the wireless communication device MS. In the GSM mobile communication system the distance between the wireless communication device and the base station with which the wireless communication device is communicating at the time is generally about 30 kilometers at the most. In this case it can be assumed that the wireless communication device MS is located within a radius of 30 kilometers from the location of the base station BS. Thus, the time of flight of the signal transmitted by the satellite from the satellite to the base station and the time of flight from the satellite to the wireless communication device differ approximately 100 μs at the most. The distance between the wireless communication device MS and the base station BS in view of the times of flight does not change to a significant degree either within the base station BS range, wherein it can be assumed that there is a difference of less than one millisecond in the reception times of the same signal in the wireless communication device MS and in the base station BS. Thus, the distance can be calculated at an accuracy of one millisecond as follows: $\begin{matrix} {{{\hat{N}}_{m\quad s}^{j}(k)} = \left\lceil \frac{{{{\overset{\_}{x}}_{SV}^{j}(k)} - {\overset{\_}{\hat{x}}}_{u}}}{c} \right\rceil} & (2) \end{matrix}$

[0067] in which ┌.┐ indicates rounding up to the nearest integer, and the line above the variable indicates that it is a vector. In this case, the same result is obtained both in view of the base station BS and in view of the wireless communication device MS. It has been possible to transmit from the base station BS a sort of estimate of the GPS time {circumflex over (T)}_(GPS) to the wireless communication device MS. If this GPS time data is very precise, it is possible to calculate also the position of the satellites very accurately, wherein errors in positioning can mainly be caused by the distance between the wireless communication device MS and the base station BS, which is not necessarily known. Even if no time data were transmitted from the base station to the wireless communication device, the wireless communication device contains some kind of an estimation of the GPS time {circumflex over (T)}_(GPS), e.g. the time of the reference clock 15, which, at this stage, can be several seconds, even minutes fast or slow.

[0068] After the distance {circumflex over (N)}_(ms) ^(J)(k) in time has been calculated in milliseconds for all receiving channels according to formula 2, it is possible to estimate the times of transmission of the signals according to the following formula.

{circumflex over (T)} _(ToT) ^(J)(k)=T _(GPS) ^(J)(k)−{circumflex over (N)} _(ms) ^(J)(k)+T _(chip) ^(J)(k)   (3)

[0069] Any measured value of the time of transmission of the satellite signal can be selected as the reference time. The time of the satellite at the time of reception, i.e. the GPS time, {circumflex over (T)}_(GPS)(k), can thereafter be estimated by supplementing the time of transmission ToT attained on the basis of the measurement selected as reference time with the estimated transfer delay, i.e. the time of flight of the signal from the satellite to the receiver. The estimated transfer delay is usually 78 ms.

{circumflex over (T)} _(GPS)(k)={circumflex over (T)} _(ToT) ^(j)(k)+0.078   (4)

[0070] After the GPS time has been preliminarily defined, it is possible to define the measured pseudoranges by subtracting the calculated times of transmission of the signal from the estimated GPS time and multiplying the result with the speed of light in the following manner:

ρ_(m) ^(k)=({circumflex over (T)} _(GPS) −{circumflex over (T)} _(ToT) ^(J)(k))c   (5)

[0071] in which c indicates the speed of light in a vacuum, the superscript k indicates from which satellite signal the measured value comes from (e.g. 1 to 4) and the subindex m indicates that the pseudorange is a measured pseudorange, not an estimated one.

[0072] The estimated pseudoranges are calculated in relation to the location {circumflex over ({overscore (x)})}_(u) of the wireless communication device MS and to the locations {overscore (x)}_(SV) ^(J)({circumflex over (T)}_(GPS)) of the satellites at an estimated time of transmission ToT. The selected default location of the wireless communication device is the location of the base station BS which is communicating with the wireless communication device at the time. The locations of the satellites are calculated as a function of time by means of equations known as such. Here, for the sake of simplicity, the estimated pseudoranges are expressed by means of the following formula: $\begin{matrix} {\rho_{p}^{k} = {f\left( {{\hat{T}}_{GPS},{\overset{\_}{\hat{x}}}_{u}} \right)}} & (6) \end{matrix}$

[0073] to indicate that the estimated pseudoranges are based solely on the estimated GPS time and to the estimated location of the wireless communication device. In formula (6), the term f represents a (strongly) non-linear function, the subindex ρ indicates that this is estimation, and {circumflex over ({overscore (x)})}_(u) is the estimated location of the wireless communication device, in which the line above the variable indicates that it is a vector.

[0074] The location {circumflex over ({overscore (x)})}_(u) of the wireless communication device and the difference between the estimated GPS time and the real GPS time can be calculated iteratively for example by the least mean squares method. This method is known as such. In the least mean squares method the following set of equations is solved: $\begin{matrix} {{\rho_{m}^{k} = {{{{{\overset{\_}{x}}_{SV}^{j}(k)} - {\overset{\_}{\hat{x}}}_{u}}} + {ct}_{u}}},{j = {1\quad \ldots \quad M}}} & (7) \end{matrix}$

[0075] The aim is to find such location data {circumflex over ({overscore (x)})}_(u) and time error Δt_(u), which best suit to a number M of measurements. The solution of this set of equations is straightforward as such: $\begin{matrix} {\begin{bmatrix} {\Delta {\overset{\_}{\hat{x}}}_{u}} \\ {\Delta \quad t_{u}} \end{bmatrix} = {\left( {H^{T}H} \right)^{- 1}H^{T}\Delta \quad \overset{\_}{\rho}}} & (8) \end{matrix}$

[0076] in which

Δ{overscore (ρ)}={overscore (ρ)}_(m) ^(j)−{overscore (ρ)}_(p) ^(j) ,j=1 . . . M   (9)

[0077] Δ{circumflex over ({overscore (x)})}_(u) is the correction vector of the location,

[0078] Δ{circumflex over ({overscore (t)})}_(u) is the correction of the time error,

[0079] and

[0080] H=the linearized Jacob's matrix of the pseudoranges estimated in point {circumflex over ({overscore (x)})}_(u).

[0081] The solution given by the least mean squares method is optimal with respect to the sum of squared errors (SSE). This sum of squared errors can be estimated by means of a formula: $\begin{matrix} {{SSE} \cong {\left( {{\Delta \quad \overset{\_}{\rho}} - {H\begin{bmatrix} {\Delta {\overset{\_}{\hat{x}}}_{u}} \\ {\Delta \quad t_{u}} \end{bmatrix}}} \right)^{T}\left( {{\Delta \quad \overset{\_}{\rho}} - {H\begin{bmatrix} {\Delta {\overset{\_}{\hat{x}}}_{u}} \\ {\Delta \quad t_{u}} \end{bmatrix}}} \right)}} & (10) \end{matrix}$

[0082] By rearranging the terms and using slightly different expressions for the terms, it is possible to write the formula (7) in the following manner: $\begin{matrix} {{{\rho_{m}^{j}\left( T_{GPS} \right)} = {{{{{\overset{\_}{x}}_{SV}^{j}\left( {\hat{T}}_{GPS} \right)} - {\overset{\_}{\hat{x}}}_{u}}} + {ct}_{u}}},{j = {1\quad \ldots \quad M}}} & (11) \end{matrix}$

[0083] The parentheses indicate that the term in question is based on the parameter presented in the parentheses. When such a presentation mode is used, it can be clearly seen that the measured pseudoranges are functions of the real GPS time and the rest of them are functions of the estimated GPS time. Thus, the time difference between the estimated GPS time and the actual GPS time can be calculated according to the measurements, and in this case it is also possible to synchronize the receiver to the actual GPS time. The time error of the receiver can be here expressed as the time difference according to the following formula:

Δt _(u) ≅ΔT=T _(GPS) −{circumflex over (T)} _(GPS)   (12)

[0084] in which Δt_(u) represents the estimated time (or calculated) clock error and ΔT is the actual clock error between the estimated time, {circumflex over (T)}_(GPS), and the real GPS time.

[0085] It is now possible to use this time difference in a wireless communication device MS to correct the estimated GPS time, whereafter it is possible to better calculate the satellite locations in order to perform positioning particularly in a situation where the calculated time difference is significant.

[0086] The calculation of distance as described above in formula 2 can in some situations cause rounding errors. For example, if the distance in milliseconds prior to rounding down is close to the next integer and the wireless communication device MS is close to a base station BS, an error closing to one millisecond can occur. This can mean an error of up to 300 km when calculating the distance between the wireless communication device and the satellite, which distorts the positioning to a significant degree. In some cases, this error can be detected from the height data calculated for the position of the wireless communication device, which height data indicates that the wireless communication device is located at an altitude of tens of kilometers or deep below the ground. In this case, the error is easy to verify. However, this is not always the case. The method according to a preferred embodiment of the invention utilizes the information that the wireless communication device MS is close to the base station BS, the position of which is known at a sufficient precision. In this manner, it is possible to set the limits within which the positioning data calculated for the wireless communication device MS should be. This limit is in the direction of the earth's surface e.g. a base-station-centered circle having a radius of approximately 30 km. Correspondingly, appropriate limit values can be defined in the elevation. If the calculation gives to the wireless communication device MS a positioning data that is outside said limit, it can be assumed that the rounding has caused an error. Subsequently, it is determined at which satellite/satellites the error has occurred. This can be performed by examining the remainders of the values calculated with the formula 2.

[0087] By using this method it is possible to fast detect the possible errors caused by rounding and to perform the necessary corrective actions. Another method for detection of rounding errors is to examine the error values calculated with formula 9 and if a value differs clearly from the other values (is significantly larger), the rounding has probably caused the error in the calculation of the distance of the satellite corresponding to said value.

[0088] It is obvious that the present invention is not limited solely to the above-presented embodiments, but it can be modified within the scope of the appended claims. 

1. A method for positioning of a wireless communication device, wherein position data of one or a plurality of reference points is stored to at least one data base, it is examined which of said reference points is located in the vicinity of the wireless communication device, and at least position data about said reference point located in the vicinity of the wireless communication device is transmitted to the wireless communication device, wherein in order to perform the positioning, said reference point located in the vicinity of the wireless communication device is selected as the default position of the wireless communication device.
 2. The method according to claim 1, wherein as the reference points are used base stations of a mobile communication network, for which base station a cell global identity is defined, and that when storing the position data of the reference points different reference points are separated in accordance with said identity.
 3. The method according to claim 2, wherein a data base is established in the mobile communication network.
 4. The method according to claim 2, wherein a communication connection is set up between the wireless communication device and the base station of the mobile communication network, and the selected default position is the position of the base station that communicates with the wireless communication device at the time.
 5. The method according to claim 2, wherein the position data of the base stations is transmitted from the base station to the wireless communication device.
 6. The method according to claim 2, wherein the data base is set up in the data base server and that a communication connection is established from the data base to the wireless communication device to transfer position data between the wireless communication device and the data base.
 7. The method according to claim 6, wherein a connection according to the WAP protocol is used as said communication connection.
 8. The method according to claim 1, wherein information on the position of the reference points is stored also in the wireless communication device.
 9. The method according to claim 8, wherein the cell global identity of the base station communicating with the wireless communication device is transmitted to the wireless communication device, wherein when the identity of the base station changes, it is examined in the wireless communication device whether any position data based on the identity of the new base station are stored in the wireless communication device, wherein in case no data is stored in the wireless communication device, a request is sent from the wireless communication device for transmission of positioning data to the wireless communication device.
 10. The method according to claim 1, wherein for determining the position data of the reference points position is performed at least in one wireless communication device, the determined position data and the identity of the base station are transmitted to be stored into the data base.
 11. A positioning system to be used in the positioning of a wireless communication device, wherein the positioning system comprises at least one data base for storing one or a plurality of reference points, means for detecting which of said reference points is located in the vicinity of the wireless communication device, means for transmitting the position data of the reference point located in the vicinity of said wireless communication device to the wireless communication device, wherein for performing the positioning, said reference point in the vicinity of the wireless communication device is arranged to be selected as the default position of the wireless communication device.
 12. The positioning system according to claim 11, wherein the base stations of the mobile communication network are arranged to be used as the reference points, for which a cell global identity is defined, and that when storing the position data of the reference points different reference points are separated from each other according to said identity.
 13. The positioning system according to claim 12, wherein the data base is established in the mobile communication network.
 14. The positioning system according to claim 12, comprising means for establishing a communication connection between the wireless communication device and the base station of the mobile communication network, wherein the selected default position is the position of that base station that communicates with the wireless communication device at the time.
 15. The positioning system according to claim 12, wherein it comprises means for transmitting position data of the base stations of the mobile communication network from the base station to the wireless communication device.
 16. The positioning system according to claim 12, wherein the data base is set up in the data base server, and that the positioning system comprises means for setting up a communication connection from the data base to the wireless communication device to transfer position data between the wireless communication device and the data base.
 17. The positioning system according to claim 16, wherein a connection according to the WAP protocol is used as said communication connection.
 18. The positioning system according to claim 11, wherein information on the position of the reference points is stored also into the wireless communication device.
 19. The positioning system according to claim 18, wherein it comprises means for transmitting to the wireless communication device the cell global identity of the base station with which the wireless communication device is communicating, wherein the wireless communication device comprises means to examine when the global cell identity changes whether the position data based on the new identity is stored in the wireless communication device, wherein in case no data is stored in the wireless communication device, a request to transmit position data to the wireless communication device is arranged to be transmitted from the wireless communication device.
 20. The positioning system according to claim 11, wherein the wireless communication device comprises means for performing positioning, and means for transmitting the defined position data and the cell global identity of the base station, and that the positioning system comprises means for receiving said positioning data and identity transmitted from the wireless communication device and for storing them into the data base.
 21. An electronic device to be used in a positioning system, which electronic device comprises at least positioning means and means for performing functions of a mobile communication device, wherein the electronic device further comprises means for detecting which of the reference points stored in the data base of the positioning system is located in the vicinity of the wireless communication device, means for receiving the position data of the reference point located in the vicinity of the wireless communication device, and means for selecting the reference point located in the vicinity of said wireless communication device as the default position of the wireless communication device in the positioning. 